package controllers;

import play.*;
import play.mvc.*;

import views.html.*;

public class Application extends Controller {
  
  public static Result index() {
    return ok(index.render());
  }
 
  //-- Javascript routing
  
  public static Result javascriptRoutes() {
	    response().setContentType("text/javascript");
	    
	    return ok(
	        Routes.javascriptRouter("myJsRoutes",
	        		controllers.routes.javascript.Projects.add(),
	        		controllers.routes.javascript.Projects.save()
	        )
	    );
	}
}